//
// Created by dell on 2023/12/15.
//

#ifndef WIN_DESKTOP_DEMO_TEST_H
#define WIN_DESKTOP_DEMO_TEST_H

#include <QWidget>


QT_BEGIN_NAMESPACE
namespace Ui { class test; }
QT_END_NAMESPACE

class Test : public QWidget {
Q_OBJECT

public:
    explicit Test(QWidget *parent = nullptr);

    ~Test() override;

    QString checkUser(QString &username, QString &password, const std::string &type);

    void showMessage(QString &message);

//    // 鼠标双击
//protected:
//    void mouseDoubleClickEvent(QMouseEvent *event) override;

// 信号, 当在页面没有显性的定义时,可以手动定义, qt 会自动根据规则去实现
//signals:

//    void signal_button_clicked();

// 按键释放
protected:
    void keyReleaseEvent(QKeyEvent *event) override;

    // 槽
private slots:

    // 登录注册
    void on_login_button_clicked();

    void on_regis_button_clicked();


private:
    Ui::test *ui;
};


#endif //WIN_DESKTOP_DEMO_TEST_H
